package com.woniu.adopt_web.mapper;

import com.woniu.adopt_web.entity.PetArticle;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PetArticleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(PetArticle record);

    PetArticle selectByPrimaryKey(Integer id);

    List<PetArticle> selectAll();

    int updateByPrimaryKey(PetArticle record);

    List<PetArticle> selectByConf(String title);

    int updateViews(int id);



}